<template>
  <div class="logo" :style="logoStyle">
      <a href="/">
        <img src="@/assets/logo.png" width="200" height="80">
      </a>
      <h1 style="float:left;margin-left:10px;">{{msg}}</h1>
  </div>
</template>
<script lang="ts">
import { defineComponent,ref, reactive ,watchEffect,watch} from "vue";
import { yearNow } from "../utils/common.js"
export default defineComponent({
  props: {
    msg!: {
      type:String,
      default: "欢迎登录"
    },
    logoStyle:{
      type:String,
      default: "width:75%;"  
    }
  },
setup: (props, context) => {
  const returnInfo = ref({
    msg: props.msg,
    logoStyle:props.logoStyle
  });
  console.log(props.msg);
  return returnInfo;
},
})
</script>
<style scoped lang="less">
img{
    width: 200px;
    height: 80px;
    border-radius: 30px;
    border: 3px solid green;
}
a{
   float: left;
}
h1{
    margin-top: 30px;
    margin-left: 10px;
    color: coral;
    font-weight: bold;
}
.logo{
    padding-left: 20%;
    padding-top: 10px;
    display:inline-block;
}
</style>